<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<!-- Set render engine for 360 browser -->
	<meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/public/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css?1" rel="stylesheet">
    <link href="/public/simpleboot/css/simplebootadmin.css?8" rel="stylesheet">
    <link href="/public/js/artDialog/skins/default.css" rel="stylesheet" />
	<link href="/public/css/other.css?<?php echo time(); ?>" rel="stylesheet" />
    <link href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		form .input-order{margin-bottom: 0px;padding:3px;width:40px;}
		.table-actions{margin-top: 5px; margin-bottom: 5px;padding:0px;}
		.table-list{margin-bottom: 0px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/public/simpleboot/font-awesome/4.4.0/css/font-awesome-ie7.min.css">
	<![endif]-->
	<script type="text/javascript">
	//全局变量
	var GV = {
	    ROOT: "/",
	    WEB_ROOT: "/",
	    JS_ROOT: "public/js/",
	    APP:'<?php echo (MODULE_NAME); ?>'/*当前应用名*/
	};
	</script>
    <script src="/public/js/jquery.js"></script>
    <script src="/public/js/jquery.quicksearch.js"></script>
    <script src="/public/js/wind.js"></script>
    <script src="/public/simpleboot/bootstrap/js/bootstrap.min.js"></script>
    <script>
    	$(function(){
    		$("[data-toggle='tooltip']").tooltip();
    	});
    </script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
<style type="text/css">
.pic-list li {
	margin-bottom: 5px;
}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li ><a href="<?php echo U('AdminGood/index');?>">商品管理</a></li>
			<li class="active"><a href="<?php echo U('AdminGood/add',array('id'=>empty($item['id'])?'':$item['id']));?>" target="_self">商品添加</a></li>
		</ul>
		<form action="<?php echo U('AdminGood/add_post');?>" method="post" class="form-horizontal js-ajax-forms" onsubmit="return checkform();" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>商品名称<span class="form-required">*</span></th>
							<td>
								<input type="text" class="require" name="good_name" id="good_name" value="<?php echo ($item["good_name"]); ?>" style="width: 400px" placeholder="请输入商品名称">
							</td>
						</tr>
                        <tr>
                            <th>商品单价<span class="form-required">*</span></th>
                            <td>
                                <input type="text" class="require number" name="good_unit_price" id="good_unit_price" value="<?php echo ($item["good_unit_price"]); ?>" style="width: 400px" placeholder="请输入商品单价">
                            </td>
                        </tr>
                        <tr>
                            <th>商品会员单价<span class="form-required">*</span></th>
                            <td>
                                <input type="text" class="require number" name="vip_good_unit_price" id="vip_good_unit_price" value="<?php echo ($item["vip_good_unit_price"]); ?>" style="width: 400px" placeholder="请输入商品会员单价">
                            </td>
                        </tr>
                        <tr>
                            <th>价格单位<span class="form-required">*</span></th>
                            <td>
                                <input type="text" class="require" name="good_unit" id="good_unit" value="<?php echo ($item["good_unit"]); ?>" style="width: 400px" placeholder="请输入价格单位">
                            </td>
                        </tr>
                        <tr>
                            <th>是否石油<span class="form-required">*</span></th>
                            <td>
                                <select name="is_oil" id="is_oil" class="require" name="is_oil" id="is_oil" value="<?php echo ($item["is_oil"]); ?>" style="width: 400px" placeholder="请选择">
                                	<option value="0">此商品不是石油</option>
                                	<option value="1">此商品是石油产品</option>
                                </select>
                                <script>
                                	$('#is_oil').val('<?php echo ($item["is_oil"]); ?>');
                                </script>
                            </td>
                        </tr>

                    </table>
				</div>

			</div>
			<div class="form-actions">
				<input type="hidden" name="id" value="<?php echo ($item["id"]); ?>"/>
				<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
				<a class="btn" href="<?php echo U('AdminGood/index');?>">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="/public/js/common.js"></script>

	</body>
</html>